package one.stand.fallback;

import com.jmp.base.dto.*;
import com.jmp.feign.DynamicFeign;
import one.stand.model.ResultModel;
import org.springframework.stereotype.Component;

/**
 * @author cjr
 */
@Component
public class DynamicFallback implements DynamicFeign {
    @Override
    public ResultModel save(DynamicSaveRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel updateByRelate(DynamicUpdateByRelateRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel remove(DynamicRemoveDto request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel deleteByRelate(DynamicDeleteRelateRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<DynamicCommentListVo> commentList(DynamicCommentListDto request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<DynamicCommentSaveVo> commentSave(DynamicCommentSaveDto request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel commentRemove(DynamicCommentRemoveDto request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel commentThumbs(DynamicCommentThumbsDto request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<DynamicListVo> list(DynamicListDto request) {
        return ResultModel.faultTolerant();
    }
}
